//
//  BaseCell.h
//  jipin
//
//  Created by lcb on 5/15/15.
//  Copyright (c) 2015 liuchengbin. All rights reserved.
//

#import <UIKit/UIKit.h>
#import "viewconfig.h"
#import "UIImageView+WebCache.h"
#import "RTLabel.h"
#import "BaseModel.h"
#import "NSString+Extensions.h"
#import "UILabel+StringFrame.h"
#import "ZCommontHeader.h"
#import "viewconfig.h"
#import "CalcLabel.h"
#import "TTTAttributedLabel.h"
#import "NSDictionary+ObjectExt.h"
typedef enum
{
    BEventType_Unknow,
    BEventType_IndexRank,
    BEventType_IndexShaiDan,
    BEventType_IndexRecommed,
    BEventType_IndexNew,
    BEventType_search,
    BEventType_category,
    BEventType_brand,
    BEventType_good,
    BEventType_goodforsun,
    BEventType_comment,
    BEventType_morecomment,
    BEventType_like,
    BEventType_ding,
    BEventType_cai,
    BEventType_reply,
    BEventType_report,
    BEventType_at,
    BEventType_tag,
    BEventType_categoryTag,
    BEventType_tagBrand,
    BEventType_taobao,
    BEventType_baidu,
    BEventType_photo,
    BEventType_icon,
    BEventType_nickname,
    BEventType_btn,
    BEventType_seeting,
    BEventType_sunDetail,
    BEventType_sunUser,
    BEventType_reload,
    BEventType_shaidan,
    BEventType_shaidanTxt,
    BEventType_shaidanPosition,
    BEventType_bangdan,
    BEventType_recommendTobangdan,
    BEventType_bangdanTop,
    BEventType_bangdanDelDanpin,
    BEventType_PTop,
    BEventType_PSelectd,
    BEventType_HTMLRANK,
    BEventType_userfollow,
    BEventType_more,
    BEventType_share,
    BEventType_qiugou,
     BEventType_addressdefault,
     BEventType_addressedit,
     BEventType_addressdelete,
    BEventType_help,
    BEventType_cancelOrder,
    BEventType_link,
    BEventType_tariff,
     BEventType_card,
    BEventType_Topic,
    BEventType_agreement,
    BEventType_banner,
}BEventType;


@interface BaseCell : UITableViewCell
{
    
}
@property(nonatomic,strong) id data;
@property(nonatomic,strong) id key;
@property(nonatomic,strong) id other;
@property(nonatomic,strong) NSIndexPath *indexPath;
@property(nonatomic,copy) void(^actionBlock)(BEventType,UIView *,id,id,NSIndexPath *);

-(void)setCallBack:(void(^)(BEventType,UIView*,id,id,NSIndexPath *))callback;
/// 根据数据模型来显示内容
- (void)showInfo:(id)model indexPath:(NSIndexPath *)indexPath;
/// 根据数据模型来显示内容
- (void)showInfo:(id)model other:(id)other indexPath:(NSIndexPath *)indexPath;
- (void)showInfo:(id)model other:(id)other key:(id)key indexPath:(NSIndexPath *)indexPath;
/// 根据key模型来显示内容
- (void)showInfo:(id)model key:(id)key indexPath:(NSIndexPath *)indexPath;
/// 返回Cell高度
+ (CGFloat)returnCellHeight:(id)model;

@end
